<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%include("/app/resapi/style.html"){}%>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link href="/module/bootstrap-table/bootstrap-table.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/module/jeDate/jedate.css"/>
    <style type="text/css">
        .table > tbody > tr > td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 0px">
    <div class="page-container">
        <div class="widget-body" style="padding-top: 0px">
            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px">
                    <div class="col-md-12 col-sm-12 col-xs-12" id="listdiv">
                        <div class="row">
                            <div class="page-breadcrumbs">
                                <ul class="breadcrumb">
                                    <li>
                                        <i class="fa fa-home"></i>
                                        <a href="#" class="active" onclick="goback();">党建新闻管理</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="btn-group" id="toobar">
                            <span><a href="javascript:void(0);" class="btn btn-sky js-create">${i18n('system.create')}</a></span>
                            <span style="margin-left: 10px;">新闻类型:</span> <span>
										<select id="newsTypeQuery" name="newsTypeQuery" class="form-control" style="display: inline-block; width: 150px;">
										</select>
								</span>
                            <span style="margin-left: 10px;">发布时间:</span>
                            <span>
											<input readonly="readonly" placeholder="开始日期" style="width: 150px; display: inline-block;" id="beginTimeQuery" class="form-control">
										</span> <span style="margin-left: 10px;margin-right: 10px;">-</span>
                            <span>
											<input readonly="readonly" placeholder="结束日期" style="width: 150px; display: inline-block;" id="endTimeQuery" class="form-control">
										</span>
                            <span style="margin-left: 20px"> <a href="javascript:void(0);" class="btn btn-magenta js-simple-query">${i18n('system.search')}</a>
								</span>
                        </div>
                        <table id="myTable"></table>
                    </div>
                    <div class="col-md-12 col-sm-12 col-xs-12" id="creatediv" style="display: none;">
                        <div class="row">
                            <div class="page-breadcrumbs">
                                <ul class="breadcrumb">
                                    <li>
                                        <i class="fa fa-home"></i>
                                        <a href="#" class="active" onclick="goback();">党建新闻管理</a>
                                    </li>
                                    <li class="active">编辑记录</li>
                                </ul>
                            </div>
                            <div class="col-md-offset-2 col-md-8 col-sm-12 col-xs-12" style="padding: 0px">
                                <form class="form-horizontal" id="form1">
                                    <table class="table table-hover table-striped table-bordered">
                                        <tr>
                                            <td width="20%">新闻标题：</td>
                                            <td colspan="3">
                                                <input type="text" class="form-control" id="title" name="title" placeholder="新闻标题" maxlength="200">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">新闻类型：</td>
                                            <td width="30%"><select id="newsType" name="newsType" class="form-control" style="border-radius: 0px;"></select></td>
                                            <td width="20%">是否置顶：</td>
                                            <td width="30%">
                                                <div class="control-group">
                                                    <label> <input type="radio" class="colored-danger" checked="checked" value="0" name="isTop"> <span class="text">顺序</span>
                                                    </label> <label> <input type="radio" class="colored-danger" value="1" name="isTop"> <span class="text">置顶</span>
                                                </label>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">人员权限：</td>
                                            <td width="30%" colspan="2">
                                                <textarea id="userPriv" name="userPriv" placeholder="人员权限" rows="5" class="form-control" readonly="readonly"></textarea>
                                            </td>
                                            <td width="30%">
                                                <a style="cursor: pointer;" opt-id="userPriv" onclick="selectUser(this,'true');">${i18n('system.select')}</a>
                                                <a style="cursor: pointer;" onclick="clearSelect('userPriv')">${i18n('system.clear')}</a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">部门权限：</td>
                                            <td width="30%" colspan="2">
                                                <textarea id="userPriv" name="userPriv" placeholder="部门权限" rows="5" class="form-control" readonly="readonly"></textarea>
                                            </td>
                                            <td width="30%">
                                                <a style="cursor: pointer;" opt-id="deptPriv" onclick="selectDept(this,'true');">${i18n('system.select')}</a>
                                                <a style="cursor: pointer;" onclick="clearSelect('deptPriv')">${i18n('system.clear')}</a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">行政级别：</td>
                                            <td width="30%" colspan="2">
                                                <textarea id="userPriv" name="userPriv" placeholder="行政级别" rows="5" class="form-control" readonly="readonly"></textarea>
                                            </td>
                                            <td width="30%">
                                                <a style="cursor: pointer;" opt-id="levelPriv" onclick="selectUserLevel(this,'true');">${i18n('system.select')}</a>
                                                <a style="cursor: pointer;" onclick="clearSelect('levelPriv')">${i18n('system.clear')}</a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">新闻内容：</td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <div id="content" style="height: 300px"></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">定时发布：</td>
                                            <td width="30%">
                                                <input type="text" class="form-control" id="sendTime" readonly="readonly" name="sendTime" placeholder="定时发布" style="cursor: pointer;">
                                            </td>
                                            <td width="20%">终止时间：</td>
                                            <td width="30%">
                                                <input type="text" class="form-control" id="endTime" readonly="readonly" name="endTime" placeholder="${i18n('system.endTime')}" style="cursor: pointer;">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">${i18n('attach')}：</td>
                                            <td width="30%" colspan="3">
                                                <div id="show_newsattach"></div>
                                                <a class="addfile" href="javascript:void(0)">${i18n('fileupload')} <input data_value="" type="file" onchange="fileUpLoad('news','newsattach');" hidefocus="true" size="1" id="newsattach" name="newsattach"
                                                                                                                          class="addfile" multiple="multiple"></a> <a class="addfile" style="width: 200px;" href="#" op_id="newsattach" onclick="selectattach(this,'true')">${i18n('system.netFileSelect')}</a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">附件权限：</td>
                                            <td width="30%" colspan="3">
                                                <div class="control-group">
                                                    <label> <input type="radio" class="colored-danger" value="1" name="attachPriv" checked="checked"> <span class="text">在线阅读</span>
                                                    </label> <label> <input type="radio" class="colored-danger" value="2" name="attachPriv"> <span class="text">允许打印</span>
                                                </label> <label> <input type="radio" class="colored-danger" value="3" name="attachPriv"> <span class="text">允许下载</span>
                                                </label>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">消息提醒：</td>
                                            <td width="30%" colspan="3">
                                                <div id="msgType"></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4" align="center"><a id="createbut" href="javascript:void(0);" class="btn btn-primary js-update-save">发&nbsp;&nbsp;布</a> <a href="javascript:void(0);"
                                                                                                                                                                                     class="btn btn-purple js-back-btn" style="margin-left: 20px;">返&nbsp;&nbsp;回</a></td>
                                        </tr>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="orgselectdiv"></div>
<div id="attachselect"></div>
</body>
<%include("/app/resapi/sysjs.html"){}%>
<script type="text/javascript" src="/module/fileupload/pageoffice.js" id="po_js_main"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table-${localeLangCountry()}.js"></script>
<script type="text/javascript" src="/module/jeDate/jeDate.js"></script>
<script type="text/javascript" src="/assets/js/editors/summernote/summernote.js"></script>
<script type="text/javascript" src="/module/fileupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/fileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/attachselect.js"></script>
<script type="text/javascript" src="/module/orgselect/orgselect.js"></script>
<script type="text/javascript" src="/gobal/js/page/party/propaganda/partynews.js"></script>
</body>
</html>
